﻿<%@ Page Language="VB" MasterPageFile="~/Pagina_Maestra.master" AutoEventWireup="false" CodeFile="GenerarRendicion.aspx.vb" Inherits="GenerarRendicion" title="Página sin título" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style5
        {
            width: 65%;
        }
        .style6
        {
            width: 36px;
        }
        .style7
        {
        }
        .style10
        {
        }
        .style11
        {
            width: 56px;
        }
        .style12
        {
            width: 100%;
        }
        .style13
        {
            height: 27px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <center><table class="style5">
        <tr>
            <td align="center" class="style22" colspan="2">
                <asp:ToolkitScriptManager ID="ScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
            </td>
        </tr>
        <tr>
            <td class="style10" colspan="4">
                <asp:Label ID="Label1" runat="server" Text="Registrar Nueva Rendicion" Font-Bold="True" 
                    Font-Size="XX-Large" BorderColor="#666666" BorderStyle="Groove" 
                    Font-Names="Eras Light ITC" ForeColor="#000099" Width="279px"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style10">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style10" colspan="4">
                <asp:Panel ID="Panel1" runat="server" BorderColor="#6699FF" 
                    Font-Overline="False" GroupingText="Informacion Generales de Rendicion:" Height="156px" 
                    Width="100%">
                    <table class="style12">
                        <tr>
                            <td class="style13">
                                <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Rendicion:"></asp:Label>
                            </td>
                            <td align="left" class="style13">
                                <asp:TextBox ID="txtNroRendicion" runat="server" BackColor="Silver" 
                                    ReadOnly="true" Width="80px"></asp:TextBox>
                            </td>
                            <td class="style13">
                                <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Fecha:"></asp:Label>
                            </td>
                            <td align="left" class="style13">
                                <asp:TextBox ID="txtFachaRendicion" runat="server" BackColor="Silver" 
                                    ReadOnly="true" Width="80px"></asp:TextBox>
                                <asp:CalendarExtender ID="txtFachaRendicion_CalendarExtender" runat="server" 
                                    Enabled="True" Format="yyyy/MM/dd" TargetControlID="txtFachaRendicion">
                                </asp:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Usuario:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCodUsuarioRend" runat="server" BackColor="Silver" 
                                    ReadOnly="true" Width="80px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="Label13" runat="server" Font-Bold="True" Text="Estado:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtEstadoRend" runat="server" BackColor="Silver" 
                                    ReadOnly="true" Width="50px">1</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label11" runat="server" Font-Bold="True" Text="Requesicion:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCodRequisicionRend" runat="server" BackColor="Silver" 
                                    ReadOnly="true" Width="80px"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td align="left">
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2">
                                <asp:Label ID="Label18" runat="server" Font-Bold="True" 
                                    Text="Fecha  Firmado de Acta de Trabajo:"></asp:Label>
                            </td>
                            <td align ="left">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <asp:TextBox ID="txtFirmaActa" runat="server"></asp:TextBox>
                                        <asp:TextBoxWatermarkExtender ID="txtFirmaActa_TextBoxWatermarkExtender" 
                                            runat="server" Enabled="True" TargetControlID="txtFirmaActa" 
                                            WatermarkCssClass="watermarked" WatermarkText="20/02/2011">
                                        </asp:TextBoxWatermarkExtender>
                                        <asp:CalendarExtender ID="txtFirmaActa_CalendarExtender" runat="server" 
                                            Enabled="True" Format="yyyy/MM/dd" TargetControlID="txtFirmaActa">
                                        </asp:CalendarExtender>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="txtFirmaActa" ErrorMessage="Ingrese un  Valor"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="style10">
                &nbsp;</td>
            <td class="style6" align="left">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style10">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style10" colspan="2">
                <asp:Panel ID="Panel2" runat="server" 
                    GroupingText="Detalle de Gastos:" BorderColor="#66CCFF">
                    <table class="style12">
                        <tr>
                            <td>
                                <asp:TextBox ID="txtConta" runat="server" Visible="False" Width="20px">0</asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label17" runat="server" Font-Bold="True" Text="Documento:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlTiposDocumentos" runat="server">
                                    <asp:ListItem>Factura</asp:ListItem>
                                    <asp:ListItem>Boleta</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="left">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label6" runat="server" Font-Bold="True" Text="Gasto:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlGastoRend" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td align="left">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label7" runat="server" Font-Bold="True" Text="Fecha:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtFecGastoRend" runat="server" Width="80px"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="txtFecGastoRend_TextBoxWatermarkExtender" 
                                    runat="server" Enabled="True" TargetControlID="txtFecGastoRend" 
                                    WatermarkCssClass="watermarked" WatermarkText="20/02/2011">
                                </asp:TextBoxWatermarkExtender>
                                <asp:CalendarExtender ID="txtFecGastoRend_CalendarExtender" runat="server" 
                                    Enabled="True" Format="yyyy/MM/dd" TargetControlID="txtFecGastoRend">
                                </asp:CalendarExtender>
                            </td>
                            <td align="left">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="txtFecGastoRend" ErrorMessage="Completar..."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label8" runat="server" Font-Bold="True" Text="Nro Factura:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtNroFacruraRend" runat="server" Width="100px"></asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="txtNroFacruraRend_TextBoxWatermarkExtender" 
                                    runat="server" Enabled="True" TargetControlID="txtNroFacruraRend" 
                                    WatermarkCssClass="watermarked" WatermarkText="# Factura">
                                    
                                </asp:TextBoxWatermarkExtender>
                                <asp:FilteredTextBoxExtender ID="txtNroFacruraRend_FilteredTextBoxExtender" 
                                    runat="server" Enabled="True" FilterType="Numbers" 
                                    TargetControlID="txtNroFacruraRend">
                                </asp:FilteredTextBoxExtender>
                            </td>
                            <td align="left">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                    ControlToValidate="txtNroFacruraRend" ErrorMessage="Completar..."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label9" runat="server" Font-Bold="True" Text="Monto S/."></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMontoGastoRend" runat="server" 
                                    Font-Bold="True" Width="100px"></asp:TextBox>
                                <asp:MaskedEditExtender ID="txtMontoGastoRend_MaskedEditExtender" 
                                    runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                    Mask="999,999.99" MaskType="Number" TargetControlID="txtMontoGastoRend">
                                </asp:MaskedEditExtender>
                            </td>
                            <td align="left">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                    ControlToValidate="txtMontoGastoRend" ErrorMessage="Completar..."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2">
                                <asp:Label ID="Label10" runat="server" Font-Bold="True" Text="Obs add:"></asp:Label>
                            </td>
                            <td align="left">
                                &nbsp;</td>
                        </tr>
                        <tr align="left">
                            <td colspan="2">
                                <asp:TextBox ID="txtOBSADDRend" runat="server" 
                                    TextMode="MultiLine">Ninguno...</asp:TextBox>
                                <asp:TextBoxWatermarkExtender ID="txtOBSADDRend_TextBoxWatermarkExtender" 
                                    runat="server" Enabled="True" TargetControlID="txtOBSADDRend" 
                                    WatermarkCssClass="watermarked" WatermarkText="Ninguna...">
                                </asp:TextBoxWatermarkExtender>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                    ControlToValidate="txtOBSADDRend" ErrorMessage="Completar..."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="btnIngresarRendicion" runat="server" BackColor="#99CCFF" 
                                    Font-Bold="True" Text="Ingresar" />
                            </td>
                            <td>
                                <asp:Button ID="btnGrabarRendicion" runat="server" BackColor="#99CCFF" 
                                    Font-Bold="True" Text="Grabar" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
            <td class="style7" colspan="2" valign="top">
                <asp:Panel ID="Panel3" runat="server" 
                    GroupingText=" Resumen de Rendicion:">
                    <table class="style12">
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Italic="True" 
                                    Text="Requisiscion S/."></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMontoRequisicion" runat="server" Enabled="False" 
                                    Width="80px" Font-Bold="True" 
                                    ReadOnly="true" Font-Names="Arial" ForeColor="Red">0</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label12" runat="server" Font-Bold="True" Font-Italic="True" 
                                    Text="Rendicion S/."></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMontoRendicion" runat="server" Enabled="False" Width="80px" 
                                    Font-Bold="True" 
                                    ReadOnly="true" ForeColor="Red">0</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label14" runat="server" Font-Bold="True" Font-Italic="True" 
                                    Text="Sub Total S/."></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtTotalRequiRend" runat="server" Enabled="False" Width="80px" 
                                    Font-Bold="True" 
                                    ReadOnly="true" ForeColor="Red">0</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Italic="True" 
                                    Text="Dev.Tecnico S/."></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtTecnicoAbonar" runat="server" Enabled="False" Width="80px" 
                                    Font-Bold="True" 
                                    ReadOnly="true" ForeColor="Red">0</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Italic="True" 
                                    Text="Dev. Avantec S/."></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtAvantecAbonar" runat="server" Enabled="False" Width="80px" 
                                    Font-Bold="True" 
                                    ReadOnly="true" ForeColor="Red">0</asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:Panel><br>
                <asp:Panel ID="Panel4" runat="server" 
                    GroupingText=" Documentos Sustentatorios:">
                    <table class="style12">
                        <tr>
                            <td align="left">
                                <asp:Label ID="Label19" runat="server" Text="Archivo:"></asp:Label>
                            </td>
                            
                            <td>
                                <asp:FileUpload ID="elarchivo2" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table class="style12">
                        <tr>
                            <td>
                                <asp:Label ID="Label20" runat="server" Text="Archivo"></asp:Label>
                            </td>
                            <td>
                                <asp:FileUpload ID="elarchivo1" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="btnSubirImagen" runat="server" BackColor="#99CCFF" 
                                    Font-Bold="True" Text="Ingresar" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Label ID="lblresultado" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="style10">
                &nbsp;</td>
            <td class="style6" align="left">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style10" colspan="4">
                <asp:Panel ID="Panel5" runat="server" 
                    GroupingText="Cuadro de Detalles de Gastos:">
                    <asp:GridView ID="gvdResumen" runat="server" 
    CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="ID_REN" HeaderText="ID" />
                            <asp:BoundField DataField="NOM_TIP_DOC" 
            HeaderText="Comprobante" />
                            <asp:BoundField DataField="NOM_GAS" HeaderText="Gasto" />
                            <asp:BoundField DataField="NRO_RBF" 
            HeaderText="Numero" />
                            <asp:BoundField DataField="DES_RCB" HeaderText="obs" />
                            <asp:BoundField DataField="IMP_GAS" 
            HeaderText="Importe" />
                            <asp:TemplateField HeaderText="Eliminar">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbeliminar" OnCommand="Eliminar" CommandName='<%# Container.DataItem("ID_REN")%>' runat="server">eliminar</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" 
        ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" 
        HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" 
        ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" 
        ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="style10">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td class="style7" align="left">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
        </tr>
    </table></center>
</asp:Content>

